package com.yanqu.road.entity.activity.biaoju.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

@FieldTypeAnnotation(tableName = "t_s_activity_biaoju_event", desc = "镖局事件表")
public class BiaoJuEventConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "事件Id", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "事件名称")
    private String name;
    @FieldTypeAnnotation(desc = "怪物介绍")
    private String desc;

    public BiaoJuEventConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.name = rs.getString("name");
        this.desc = rs.getString("desc");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }
}
